package com.gaff.emp.core.datasource.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * 多数据源属性
 */
@ConfigurationProperties(prefix = "dynamic-data-sources")
public class DynamicDataSourceProperties {

    private List<DataSourceProperties> dataSource = new ArrayList<>();

    public List<DataSourceProperties> getDataSource() {
        return dataSource;
    }

    public void setDataSource(List<DataSourceProperties> dataSource) {
        this.dataSource = dataSource;
    }
}
